﻿using System;
using System.Linq;
using System.Windows.Forms;

namespace SetPipe.Forms
{
	internal class HYIntIncreaseCombox : HYintComBox
	{
		private void AddItem(string strText)
		{
			if (strText.LongCount<char>() == 0L)
			{
				return;
			}
			ComboBox.ObjectCollection items = base.Items;
			if (!items.Contains(strText))
			{
				base.Items.Add(strText);
			}
		}

		protected override void OnDropDown(EventArgs e)
		{
			string text = base.Text;
			this.AddItem(text);
			base.OnDropDown(e);
		}

		protected override void OnMouseLeave(EventArgs e)
		{
			string text = base.Text;
			this.AddItem(text);
			base.OnMouseLeave(e);
		}
	}
}
